import { openai } from '@ai-sdk/openai';
import { embed } from 'ai';
import { run } from '../lib/run';

run(async () => {
  const { embedding, usage } = await embed({
    model: openai.embedding('text-embedding-3-small'),
    value: 'sunny day at the beach',
  });

  console.log(embedding);
  console.log(usage);
});
